import { post } from './http';

// 测试接口
export const ceshi = async (params: any) => {
  return await post('api/index/test', params);
};

// 获取验证码
export const getCaptcha = async (params: any) => {
  return await post('api/code/send', params);
};

// 注册
export const register = async (params: any) => {
  return await post('api/login/register', params);
};

// 登录
export const login = async (params: any) => {
  return await post('api/login/pwdlogin', params);
};

// const 修改or忘记密码
export const changePassword = async (params: any) => {
  return await post('api/login/uppwd', params);
};

// 获取省份列表
export const getProvince = async (params: any) => {
  return await post('api/index/province', params);
};

// 获取省份列表
export const getCity = async (params: any) => {
  return await post('api/index/city', params);
};

// 获取省份列表
export const getVINresult = async (params: any) => {
  return await post('api/inquiry/getCarModelByVin', params);
};
